package com.ss.android.newmedia.message.a;

import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.view.View.OnClickListener;
import android.view.View;
import com.ss.android.newmedia.message.i;
import org.json.JSONObject;

final class b implements View.OnClickListener {
    private final int a;
    private final Intent b;
    private final a c;

    b(a arg1, int arg2, Intent arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onClick(View arg9) {
        try {
            i.a(this.c.getApplicationContext(), "lock_push_click", ((long)this.a), -1, false, new JSONObject[0]);
            ((NotificationManager)this.c.getSystemService(Context.NOTIFICATION_SERVICE)).cancel("app_notify", this.a);
            this.b.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            this.c.startActivity(this.b);
        }
        catch(Throwable v0) {
            v0.printStackTrace();
        }

        this.c.finish();
    }
}

